﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class Warehouse
    {
        /// <summary>
        /// 仓库编号
        /// </summary>
        [Key]
        [Required]
        public int warehouse_id { get; set; }

        /// <summary>
        /// 仓库地址
        /// </summary>
        [Required]
        [StringLength(100)]
        public string? location { get; set; }

        /// <summary>
        /// 最⼤库存容量
        /// </summary>
        [Required]
        public int capacity { get; set; }
    }
}
